package com.yukh.test.javabase.collection.list;

import java.util.Iterator;
import java.util.Vector;

public class VectorDemo {
	
	/**
	 * @author yukh
	 */
	public static void showVector(Vector vecParam){
		Iterator it = vecParam.iterator();
		while(it.hasNext()){
			String str = (String)it.next();
			System.out.println(str);
		}
	}
	
	
	
	public static void main(String[] args) {
		Vector vec = new Vector(3);
		vec.add("111");
		vec.add("444");
		vec.add("333");
		vec.add(3, "222");
		
		vec.insertElementAt("555", 4);
		showVector(vec);
	}

}
